package net.oschina.git.fsppp.common.baserx;

import rx.Subscription;
import rx.subscriptions.CompositeSubscription;

/**
 * Created by QiHuang on 2016/10/10.
 */
public class RxManager {
    private CompositeSubscription subscription = new CompositeSubscription();

    public void add(Subscription s) {
        subscription.add(s);
    }

    public void clear() {
        subscription.unsubscribe();
    }

}
